\hypertarget{_d_i___state_machine_8h}{\section{D\-I\-\_\-\-State\-Machine.\-h File Reference}
\label{_d_i___state_machine_8h}\index{D\-I\-\_\-\-State\-Machine.\-h@{D\-I\-\_\-\-State\-Machine.\-h}}
}


Header file for the digital input state machine.  


{\ttfamily \#include \char`\"{}Digital\-\_\-\-Input.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}boolean.\-h\char`\"{}}\\*
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__di__statemachine_ga1ff79a885858a15562d8bd473c1efe24}{D\-I\-\_\-\-State\-\_\-t} \{ \\*
\hyperlink{group__di__statemachine_gga1ff79a885858a15562d8bd473c1efe24a8ae7603290feb31901a777c7225aa403}{D\-I\-\_\-\-U\-N\-I\-N\-I\-T\-I\-A\-L\-I\-Z\-E\-D}, 
\hyperlink{group__di__statemachine_gga1ff79a885858a15562d8bd473c1efe24aa0ac7a9cdfc538dd66f76f5b6f75f4b1}{D\-I\-\_\-\-I\-N\-I\-T\-I\-A\-L\-I\-Z\-E\-D}, 
\hyperlink{group__di__statemachine_gga1ff79a885858a15562d8bd473c1efe24a19f7283672ff38fff614237c05de6350}{D\-I\-\_\-\-I\-D\-L\-E}, 
\hyperlink{group__di__statemachine_gga1ff79a885858a15562d8bd473c1efe24a6b154c2051b086032c67aa91fa0ef163}{D\-I\-\_\-\-C\-H\-A\-N\-N\-E\-L\-\_\-\-S\-A\-M\-P\-L\-I\-N\-G}, 
\\*
\hyperlink{group__di__statemachine_gga1ff79a885858a15562d8bd473c1efe24ac285ee632a605767148a84ff1d5d1b61}{D\-I\-\_\-\-R\-E\-S\-E\-T}
 \}
\begin{DoxyCompactList}\small\item\em Digital input state machine state definitions. Defines all the possible states for the digital input state machine to be in. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__di__statemachine_ga5f2cfe7443234cdadb81a5b221975fa4}{D\-I\-\_\-\-Machine\-\_\-\-Create} (void)
\begin{DoxyCompactList}\small\item\em Create the digital input state machine. \end{DoxyCompactList}\item 
void \hyperlink{group__di__statemachine_gaf2587f28e9c969fde047cd11b6042f2b}{D\-I\-\_\-\-Machine\-\_\-\-Init} (void)
\begin{DoxyCompactList}\small\item\em Initialize the digital input state machine. \end{DoxyCompactList}\item 
void \hyperlink{group__di__statemachine_gaab31cdbb772e1aaadfef389a7e54012f}{D\-I\-\_\-\-Machine\-\_\-\-Service} (void)
\begin{DoxyCompactList}\small\item\em Perform a periodic service of the state machine. \end{DoxyCompactList}\item 
void \hyperlink{group__di__statemachine_ga0e3f0f8603501b5ff86cd5e849d97cad}{D\-I\-\_\-\-Machine\-\_\-\-Halt} (void)
\begin{DoxyCompactList}\small\item\em Halt any current operations and return the idle state. \end{DoxyCompactList}\item 
void \hyperlink{group__di__statemachine_gaa8df31aa65e69cb9e81cdcb11e942001}{D\-I\-\_\-\-Machine\-\_\-\-Idle} (void)
\begin{DoxyCompactList}\small\item\em Idle state handler. \end{DoxyCompactList}\item 
void \hyperlink{group__di__statemachine_gac2e52e7ee418f5ee8301fbf6baecd207}{D\-I\-\_\-\-Machine\-\_\-\-Input\-\_\-\-Sample} (\hyperlink{struct_digital___input__t}{Digital\-\_\-\-Input\-\_\-t} $\ast$$\ast$inputs, uint32\-\_\-t count, \hyperlink{group__data__types_ga0ecf26b576b9a54eca656b9be7ba6a06}{bool} single\-Channel)
\begin{DoxyCompactList}\small\item\em Input sampling state handler. \end{DoxyCompactList}\item 
void \hyperlink{group__di__statemachine_gad16cfcc75eda3999dc6605770b0ea4d7}{D\-I\-\_\-\-Machine\-\_\-\-Reset} (void)
\begin{DoxyCompactList}\small\item\em Reset state handler. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Contains public constants, typedefs and function prototypes for the digital input state machine.

\begin{DoxyAuthor}{Author}
Jared Woolston (\href{mailto:jwoolston@tenkiv.com}{\tt jwoolston@tenkiv.\-com}) 
\end{DoxyAuthor}
\begin{DoxySince}{Since}
v1.\-0.\-0.\-0 
\end{DoxySince}


Definition in file \hyperlink{_d_i___state_machine_8h_source}{D\-I\-\_\-\-State\-Machine.\-h}.

